<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
<script src="js/uploadPreview.js" type="text/javascript"></script>
<script>
	window.onload = function() {
		new uploadPreview({
			UpBtn : "up_img",
			DivShow : "imgdiv",
			ImgShow : "imgShow"
		});
	}
</script>
</head>

<body>
	<div class="panel admin-panel margin-top" id="add"
		style="display: block;">
		<div class="panel-head" id="panel-head">
			<strong><span class="icon-pencil-square-o"></span> 添加新医生信息</strong>

		</div>
		<div class="body-content">
			<form method="post" class="form-x" action="${contextPath}/admin/addPerson" enctype="multipart/form-data">
				<div class="form-group">
					<div class="label">
						<label>个人头像：</label>
					</div>
					<div class="field">
						<div id="imgdiv">
						<img id="imgShow" width="100" height="100" />
						</div>
						<input type="file" name="imgUrl" id="up_img" style="position: relative;top:30px;left: 10px;opacity: 0;" />
						<div class="tips"></div>
						<input  type="button" value="上传头像"  class="button bg-main icon-check-square-o" data-validate="required:请上传头像">
					
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>用户名：</label>
					</div>
					<div class="field">
						<input id="name" type="text" class="input w50"
							value="${(map.param1)!''}" name="person.username"
							data-validate="required:请输入用户名" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>密码：</label>
					</div>
					<div class="field">
						<input id="name" type="password" class="input w50" value="123456"
							name="person.password" data-validate="required:请输入密码" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>姓名：</label>
					</div>
					<div class="field">
						<input id="name" type="text" class="input w50"
							value="${(map.param1)!''}" name="hospitalPerson.person_name"
							data-validate="required:请输入姓名" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>工号：</label>
					</div>
					<div class="field">
						<input id="style" type="text" class="input w50"
							name="hospitalPerson.code" value="GK"
							data-validate="required:请输入工号" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>职称：</label>
					</div>
					<div class="field">
						<select style="margin-top: 9px;"
							name="hospitalPerson.person_title">
							<option value="助理医师">助理医师</option>
							<option value="医师" selected="selected">医师</option>
							<option value="住院医师">住院医师</option>
							<option value="主治医生">主治医生</option>
							<option value="副主任医师">副主任医师</option>
							<option value="主任医师">主任医师</option>
						</select>
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>科室：</label>
					</div>
					<div class="field">
						<select style="margin-top: 9px;" name="hospitalPerson.department">
							<option value="骨科">骨科</option>
						</select>
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>任职状态：</label>
					</div>
					<div class="field">
						<select style="margin-top: 9px;" name="hospitalPerson.state">
							<option value="1" selected="selected">上班</option>
							<option value="2">出差</option>
							<option value="3">停职</option>
							<option value="4">离职</option>
						</select>
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>门诊费用：</label>
					</div>
					<div class="field">
						<input type="radio" name="hospitalPerson.registrationfee"
							value="10" checked>10元 <input type="radio"
							name="hospitalPerson.registrationfee" value="20">20元 <input
							type="radio" name="hospitalPerson.registrationfee" value="30">30元
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label>简介：</label>
					</div>
					<div class="field">
						<textarea id="say" type="text" class="input"
							name="hospitalPerson.profile" style="height: 120px;">${(map.param3)!''}</textarea>
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label></label>
					</div>

					<div class="field">
						<button class="button bg-main icon-check-square-o" type="submit"
							id="submit">提交</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>